﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nauka.engine
{
    class Rank_string
    {
        public static string getString(Rank r)
        {
            string s;
            switch (r)
            {
                case Rank.Ace:
                    s = "A";
                    break;
                case Rank.Deuce:
                    s = "2";
                    break;
                case Rank.Eight:
                    s = "8";
                    break;
                case Rank.Five:
                    s = "5";
                    break;
                case Rank.Four:
                    s = "4";
                    break;
                case Rank.Jack:
                    s = "J";
                    break;
                case Rank.King:
                    s = "K";
                    break;
                case Rank.Nine:
                    s = "9";
                    break;
                case Rank.Queen:
                    s = "Q";
                    break;
                case Rank.Seven:
                    s = "7";
                    break;
                case Rank.Six:
                    s = "6";
                    break;
                case Rank.Ten:
                    s = "T";
                    break;
                default:
                    s = "3";
                    break;
            }

            return s;
        }
        /*public static Rank getRank(string s)
        {
            Rank r;

            return r;
        }*/
    }
}
